﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="SchoolMange.aspx.cs" Inherits="EducationManagementSystem.Admin.SchoolMange" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        table
        {
            background-color: #c1ddee;
        }
        #nani
        {
            background-color: #9984b0;
        }
        .style1
        {
            width: 24%;
            height: 43px;
        }
        .style2
        {
            width: 19%;
            height: 43px;
        }
        .style4
        {
            height: 43px;
            width: 54px;
        }
        .style5
        {
            width: 3%;
            height: 43px;
        }
        
    </style>
    <table cellpadding="10" align="center">
         <tr>
            <td id="Terr" align="left" colspan="7" runat="server">
                <font face="宋体"></font>
            </td>
        </tr>
        <tr>
            <td align="center" class="style1">
                <font face="宋体">学院名称：</font>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
               
            </td>
            <td align="center" class="style4">
                <asp:Button ID="Button1" runat="server" Width="50px" Text="添加" OnClick="Button1_Click">
                </asp:Button>
            </td>
        </tr>
        <tr align="center" id="nani">
            <td class="bt12b" colspan="7" runat="server">
                学院列表
            </td>
        </tr>
        <tr align="center">
            <td colspan="7">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                    PageSize="6" Width="450px" OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="schoolname" HeaderText="学院名称">
                            <HeaderStyle Height="40px" Width="200px" />
                            <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button ID="Button5" runat="server" Text="删除" CommandName="de" CommandArgument='<%#Eval("schoolID") %>' />
                            </ItemTemplate>
                            <HeaderStyle Height="10px" Width="45px" />
                            <ItemStyle Height="25px" Width="80px" HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
